package com.code.tx;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.jdbc.core.JdbcTemplate;
import org.springframework.stereotype.Repository;

@Repository
public class UserDao {

    @Autowired
    JdbcTemplate jdbcTemplate;

    public void insert(){
        String insert="insert into `t_user` (user_id,username,ustatus) values(?,?,?)";
        jdbcTemplate.update(insert,2,"19","23");
    }
}
